using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.IO;
using TileGert;

namespace TestApp
{
  public partial class TestForm : Form
  {
    private GertInput _input = new GertInput(new GertGame());

    public TestForm()
    {
      InitializeComponent();
    }

    private void LogLine(string text)
    {
      tbLog.Text += text + Environment.NewLine;
    }

    private void btnTest_Click(object sender, EventArgs e)
    {
      _input.Update();
      for (int i = 0; i < _input.Joystick.Count; i++)
      {
        LogLine(_input.Joystick[i].PointOfViewController(0).ToString());
      }
    }

    [DllImport("Kernel32.dll")]
    private static extern bool QueryPerformanceCounter(out long lpPerformanceCount);

    [DllImport("Kernel32.dll")]
    private static extern bool QueryPerformanceFrequency(out long lpFrequency);

  }
}